<?xml version="1.0"?>

<st-source>
<time-stamp>From VisualWorks® NonCommercial, 7.6 of March 3, 2008 on March 12, 2009 at 4:08:24 pm</time-stamp>


<class>
<name>Invoice</name>
<environment>SupplyChain</environment>
<super>Core.Object</super>
<private>false</private>
<indexed-type>none</indexed-type>
<inst-vars>itemList </inst-vars>
<class-inst-vars></class-inst-vars>
<imports></imports>
<category></category>
<attributes>
<package>SupplyChain</package>
</attributes>
</class>

<!-- -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -   -->


<methods>
<class-id>SupplyChain.Invoice class</class-id> <category>instance creation</category>

<body package="SupplyChain" selector="new">new
	"Answer a newly created and initialized instance."

	^super new initialize</body>
</methods>

<!-- -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -   -->


<comment>
<class-id>SupplyChain.Invoice</class-id>
<body>An ordered collection of items to be reordered.
Instance Variables:
	itemList	&lt;Object&gt;	An Ordered Collection of Items

</body>
</comment>

<methods>
<class-id>SupplyChain.Invoice</class-id> <category>initialize-release</category>

<body package="SupplyChain" selector="initialize">initialize
	"Initialize a newly created instance. This method must answer the receiver."

	itemList := SortedCollection new.
	itemList sortBlock:[:a :b | a name &lt; b name].
	^self</body>
</methods>

<methods>
<class-id>SupplyChain.Invoice</class-id> <category>accessing</category>

<body package="SupplyChain" selector="itemList">itemList

	^itemList</body>

<body package="SupplyChain" selector="itemList:">itemList: aList

	itemList := aList.
	^self</body>
</methods>

</st-source>
